package com.chocho.javacompileserver.client;

import com.chocho.javacompileserver.client.hystrix.ConsumerServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@Component
@FeignClient(value = "consume-server", fallback = ConsumerServiceHystrix.class)
public interface PushResultClient {

    @PostMapping("/consume/common/pushResult")
    void pushResult(@RequestBody Map<String, Object> map);
}
